﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LPNRTool
{
    class showimage
    {
        //public delegate void ShowImage(byte[] data);

        //public void realShowImage(byte[] data)
        //{
        //    MemoryStream ms = new MemoryStream(data);
        //    Image img = System.Drawing.Image.FromStream(ms);
        //    this.pictureBoxVideo.Image = ResetImageSize(img, this.pictureBoxVideo.Width, this.pictureBoxVideo.Height);
        //}

        //private void GuiShowImage(byte[] data)
        //{
        //    this.pictureBoxVideo.Invoke( new ShowImage(realShowImage), data);
        //}

        //[EditorBrowsable(EditorBrowsableState.Never)]
        //public static bool ImageCallback()
        //{
        //    return false;
        //}

        //public Image ResetImageSize(Image AtImage, int ImageWidth, int ImageHeight)
        //{
        //    if (AtImage == null) return null;
        //    Image.GetThumbnailImageAbort MyCallback = new Image.GetThumbnailImageAbort(ImageCallback);
        //    Image Img = null;
        //    Img = AtImage.GetThumbnailImage(ImageWidth, ImageHeight, MyCallback/*空回调方法*/, IntPtr.Zero/*必须是空指针*/);
        //    return Img;
        //}

    }
}
